package com.linhtt.photoeditor.data.model

data class FilterColor(val icon:Int,val title:String,val typeFilter:TypeFilter ) {
    enum class TypeFilter(val matrix:FloatArray,val offset:FloatArray){
        TYPE_DARK(floatArrayOf( 0.2126f, 0.7152f, 0.0722f, 0f,
            0.2126f, 0.7152f, 0.0722f,  0f,
            0.2126f, 0.7152f, 0.0722f,  0f,
            0f, 0f, 0f, 0f ), floatArrayOf(0f, 0f, 0f, 0f)),
        TYPE_HOT(floatArrayOf(1.4f,0f, 0f, 0f,
            0f, 1.4f, 0f, 0f,
            0f, 0f, 1f, 0f,
            0f, 0f, 0f, 1f), floatArrayOf(0f, 0f, 0f, 0f)),
        TYPE_COLD(floatArrayOf(0.8f,0f, 0f, 0f,
        0f, 0.8f, 0f, 0f,
        0f, 0f, 1f, 0f,
        0f, 0f, 0f, 1f), floatArrayOf(0f, 0f, 0f, 0f)),
        TYPE_SEPIUM(floatArrayOf(1.3f,-0.3f, 1.1f, 0f,
            0f, 1.3f, 0.2f, 0f,
            0f, 0f, 0.8f, 0.2f,
            0f, 0f, 0f, 1f), floatArrayOf(0f, 0f, 0f, 0f)),
        TYPE_BLACK_WHITE(floatArrayOf(0f,1f, 0f, 0f,
            0f, 1f, 0f, 0f,
            0f, 1f, 0f, 0f,
            0f, 1f, 0f, 1f), floatArrayOf(0f, 0f, 0f, 0f)),
        TYPE_YELLOW(floatArrayOf(1f,0f, 0f, 0f,
            -0.2f, 1f, 0.3f, 0.1f,
            -0.1f, 0f, 1f, 0f,
            0f, 0f, 0f, 1f), floatArrayOf(0f, 0f, 0f, 0f)),
        TYPE_MILK(floatArrayOf(0f,1f, 0f, 0f,
            0f, 1f, 0f, 0f,
            0f, 0.6f, 1f, 0f,
            0f, 0f, 0f, 1f), floatArrayOf(0f, 0f, 0f, 0f)),
        TYPE_NATURE_1(floatArrayOf(1.1f,0f, 0f, 0f,
            0f, 1.5f, 0f, 0f,
            0f, 0f, 1f, 0f,
            0f, 0f, 0f, 1f), floatArrayOf(0f, 0f, 0f, 0f)),
        TYPE_NATURE_2(floatArrayOf(1.2f,0f, 0f, 0f,
            0f, 1.5f, 0f, 0f,
            0f, 0f, 1f, 0f,
            0f, 0f, 0f, 1f), floatArrayOf(0f, 0f, 0f, 0f)),
        TYPE_NATURE_3(floatArrayOf(1.3f,0f, 0f, 0f,
            0f, 1.5f, 0f, 0f,
            0f, 0f, 1f, 0f,
            0f, 0f, 0f, 1f), floatArrayOf(0f, 0f, 0f, 0f)),
        TYPE_NATURE_4(floatArrayOf(1.4f,0f, 0f, 0f,
            0f, 1.5f, 0f, 0f,
            0f, 0f, 1f, 0f,
            0f, 0f, 0f, 1f), floatArrayOf(0f, 0f, 0f, 0f)),
        TYPE_NATURE_5(floatArrayOf(1.5f,0f, 0f, 0f,
            0f, 1.5f, 0f, 0f,
            0f, 0f, 1f, 0f,
            0f, 0f, 0f, 1f), floatArrayOf(0f, 0f, 0f, 0f)),
        TYPE_RED(floatArrayOf(1f,0f, 0f, 0f,
            0f, 1f, 0f, 0f,
            0f, 0f, 1f, 0f,
            0f, 0f, 0f, 1f), floatArrayOf(2f, 0f, 0f, 0f)),
        TYPE_CYAN(floatArrayOf(1f,0f, 0f, 1.9f,
            0f, 1f, 0f, 0f,
            0f, 0f, 1f, 0f,
            0f, 0f, 0f, 1f), floatArrayOf(-22f, 0.3f, 0.5f, 0.2f)),
    }

}